package com.niepan.modules.zhinenganjianback.service.impl;

import com.niepan.modules.zhinenganjianback.dao.NPDeviceDao;
import com.niepan.modules.zhinenganjianback.model.NPDeviceRegister;
import com.niepan.modules.zhinenganjianback.service.NPDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @author weifuqiang
 * @date 2023/3/8
 */

@Service
public class NPDeviceServiceImpl implements NPDeviceService {

    @Autowired
    private NPDeviceDao npDeviceDao;

    @Override
    public ArrayList<NPDeviceRegister> ListAllDevice(Integer status) {

        ArrayList<String> NPDeviceList = npDeviceDao.ListAllDevice(status);

        String total = NPDeviceList.get(0);
        for (int i = 1; i < Integer.parseInt(total); i++) {
            String s = NPDeviceList.get(i);
        }


        return null;
    }
}
